package com.leyou.common.annocation;

import com.leyou.common.advice.CommonExceptionAdvice;
import com.leyou.common.advice.CommonLogAdvice;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Import;

import java.lang.annotation.*;


/*@Documented//用来标注生成javadoc的时候是否会被记录
@Inherited //只有作用在类上时，会被子类继承此自定义的注解，其余情况都不会继承
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Import(CommonExceptionAdvice.class)//负载导入CommonException这个类
@MapperScan("com.leyou.item.mapper")*/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Import({CommonExceptionAdvice.class, CommonLogAdvice.class})
public @interface EnableExceptionAdvice {
}
